widget: Add brute force method to propagate clip
authorBenjamin Otte <otte@redhat.com>
Wed, 2 Mar 2016 23:35:15 +0000 (00:35 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 2 Mar 2016 23:43:59 +0000 (00:43 +0100)
commit3e0694284785153944255a0501e84a76c491e4b4
treeba09b4efc0c3a0569a0c9143c7aed62ec380115c
parent05d1437e62c4e19dcc915c9cdbc6ec14f60afcbe
widget: Add brute force method to propagate clip

When a gtk_widget_queue_allocate() on some widget increases the clip,
widget->parent's clip was not updated. This appraoch naively just
unions widget's new clip with widget->parent's clip.

This of course only works if widget and parent share the same GDK
window. In the cases where they don't we can't do anything and need a
better fix.

Fixes label-text-shadow-changes-modify-clip.ui reftest.
gtk/gtkwidget.c